Skip to content

Add log_helpers.hpp with pure log-formatting functions#235

Merged
bernardladenthin merged 1 commit into
mainfrom
claude/jolly-einstein-1xf8xy
Jun 15, 2026
Merged

Add log_helpers.hpp with pure log-formatting functions#235
bernardladenthin merged 1 commit into
mainfrom
claude/jolly-einstein-1xf8xy

Conversation

@bernardladenthin

Copy link
Copy Markdown
Owner

Summary

  • Introduce log_helpers.hpp with two pure log-formatting functions: log_level_name and format_log_as_json
  • These functions have zero JNI calls and zero llama/server state dependencies, making them highly testable and reusable
  • Add comprehensive test suite (test_log_helpers.cpp) with 13 tests covering all functions
  • Update llama.cpp pinned version from b8953 to b9637
  • Update test counts and documentation in CLAUDE.md

Test plan

  • Added 13 new unit tests in src/test/cpp/test_log_helpers.cpp covering log_level_name and format_log_as_json
  • All 440 tests pass locally (156 in test_utils.cpp, 188 in test_server.cpp, 42 in test_json_helpers.cpp, 13 in test_log_helpers.cpp, 41 in test_jni_helpers.cpp)
  • CI is green on this branch

Related issues / PRs

Checklist

  • I have read CONTRIBUTING.md and CODE_OF_CONDUCT.md
  • My commits follow Conventional Commits
  • No security-sensitive changes

https://claude.ai/code/session_01Mmq9AfxTafNgQyt2c8tiLc

- Update C++ test counts after the b9637 bump: total 417->440,
  test_server 179->188, test_jni_helpers 36->41
- Add a test_log_helpers.cpp row (13 tests) and a log_helpers.hpp
  subsection to the Native Helper Architecture section
- Fix stale GIT_TAG b8953->b9637 and drop the dead branch note

https://claude.ai/code/session_01Mmq9AfxTafNgQyt2c8tiLc
@bernardladenthin bernardladenthin merged commit 81149b6 into main Jun 15, 2026
7 of 9 checks passed
@bernardladenthin bernardladenthin deleted the claude/jolly-einstein-1xf8xy branch June 15, 2026 10:46
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants